package itheima.com.Day12;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class CharStream09 {
    public static void main(String[] args) throws IOException {
        //字符缓冲输入流
        BufferedReader br = new BufferedReader(new FileReader("Day12\\a.txt"));

        char[] chars= new char[1024];
        String line;
        while ((line=br.readLine())!=null){
            System.out.println(line);
        }
        br.close();
/*
        BufferedReader br = new BufferedReader(new FileReader("Day12\\a.txt"));

        char[] chars = new char[1024];
        int len;
        while ((len=br.read(chars))!=-1){
            System.out.println(new String(chars,0,len));
        }
        br.close();*/
    }
}
